//
//  CommentConst.swift
//  Wmsmobile
//
//  Created by Nick xu on 16/7/20.
//  Copyright © 2016年 hddden. All rights reserved.
//

import UIKit

//本文件用于添加公用的常量、常量、常量
//全局函数 （代替宏）

//MARK: - 常量
//屏幕宽度
let KscreenWidth = UIScreen.mainScreen().bounds.size.width
//屏幕高度
let KscreenHeight = UIScreen.mainScreen().bounds.size.height


//MARK: - 全局函数
//自定义print
public func lOGItems(array:[AnyObject?]){
    for item in array {
        print(item)
    }
}

class CommentConst: NSObject {
    
    

}

//MARK: - ID 功能名对照表
let founctionIDs:[String : String] = [
    "37" : "不混载收货",
    "33" : "移库补货"
]

//MARK: - 函数对照字典
//ID对照表
let WMSmethodsIDDict:[String : String] = [
    "1001" : "finishAllStkin",
    "1002" : "finishStkin"
]
let WMSmethodsDict:[String : AnyObject] = [
    
    "chkOrd" : [
        "paramOthers" : ["piOrdNum"],
        "constantParam" : NSNull()
    ],
    "startStkin" : [
        "paramOthers" : ["piOperator" , "piOrdNum"],
        "constantParam" : ["piCls" : "普通收货" , "piUnloader" : "0"]
    ],
    "handlePallet" : [
        "paramOthers" : ["piUser" , "piStkIn" , "piPalletCode"],
        "constantParam" : ["piFlag" : "1"],
        "replaceList" : ["piStkIn" : "poStkinNum"]
    ],
    "chkArticle" : [
        "paramOthers" : ["piArticle" , "piOrderNum" , "piStkinNum" , "piPalletCode" , "piOperator" , ""],
        "constantParam" : ["piCls" : "普通收货"],
        "replaceList" : ["piOrderNum" : "piOrdNum" , "piStkinNum" : "poStkinNum" , "piArticle" : "内码"]
    ],
    "oneToManyHandle" : [
        "paramOthers" : ["piArticleCode" ,"piOwner" , "piBin"],
        "constantParam" : NSNull(),
        "replaceList" : ["piOwner" : "poOwner" , "piArticleCode" : "poArticleCode","piBin":"poBinCode"]
    ],
    "oneToManyHandle_1" : [
        "paramOthers" : ["piArticleCode" ,"piOwner" , "piBin"],
        "constantParam" : NSNull(),
        "replaceList" : ["piOwner" : "poOwner" , "piArticleCode" : "custompoArticleCode" , "piBin" : "poFromBin"]
    ],
    "updStkin" : [
        "paramOthers" : ["piOrderNum" , "piStkinNum" , "piPalletCode" , "piArticle" , "piQpc" , "piProDate", "piLot" , "piOperator"],
        "constantParam" : ["piWeight" : "0" ,"piCls" : "普通收货", "piUnloader" : "0","piStkInTem" : "0" ,"piVendorLots" : "" ,"piFinishPallet" : "1"],
        "replaceList" : ["piOwner" : "poOwner" , "piProDate" : "piDate"]
    ],
    "finishStkin" : [
        "paramOthers" : ["piStkinNum" , "piOperator"],
        "constantParam" : NSNull(),
        "replaceList" : NSNull(),
        "suffix" : "330"
    ],
    "finishAllStkin" : [
        "paramOthers" : ["piOrdNum" , "piOperator"],
        "constantParam" : ["piAction" : "1"],
        "replaceList" : NSNull(),
        "suffix" : "330"
    ],
    "getRplInfo" : [
        "paramOthers" : ["piAreaCode" , "piOperator" , "piType"],
        "constantParam" : NSNull(),
        "replaceList" : NSNull(),
        "suffix" : "330"
    ],
    "updRpl" : [
        "paramOthers" : [ "piRplNum" , "piRplLine" , "piFromBin" , "piToBin" , "piArticle" , "piQpc" , "piOperator"],
        "constantParam" : ["piType" : "0"],
        "replaceList" : NSNull(),
    ],
    "getBin" : [
        "paramOthers" : ["piOperator" , "piPalletCode"],
        "constantParam" : ["piType" : "0"],
        "suffix" : "330"
    ],
    "GetArticlePickBin" : [
        "paramOthers" : ["piArticle"],
        "suffix" : "330"
    ],
    "finishPutAway" : [
        "paramOthers" : ["piBinCode","piParityBit","piPalletCode","piOperator","piQpc"],
        "constantParam" : ["piType" : "0"],
        "suffix" : "330"
    ],
    "PutAwayExcept" : [
        "paramOthers" : ["piBinCode","piOperator"],
        "suffix" : "330"
    ],
    "handlePallet_1" : [
        "paramOthers" : [ "piPalletCode","piUser" , "piStkin"],
        "constantParam" : ["piFlag" : "5"],
        "replaceList" : ["piStkin" : "poStkinNum"]
    ],
    "handlePallet_2" : [
        "paramOthers" : [ "piPalletCode","piUser" , "piStkin"],
        "constantParam" : ["piFlag" : "3"],
        "replaceList" : ["piStkin" : "poStkinNum"]
    ],
    "qryPallet" : [
        "paramOthers" : ["piPalletCode"],
        "suffix" : "225"
    ],
    "getHiBin" : [
        "paramOthers" : ["piAreaCode"],
        "suffix" : "330"
    ],
    "compareElement" : [
        "constantParam" : NSNull(),
    ],
    "giveDefaultValue" : [
        "paramOthers" : ["poQpc"],
        "replaceList" : NSNull(),
    ],
    "updRpl_1" : [
        "paramOthers" : ["piType" , "piRplNum" , "piRplLine" , "piFromBin" , "piToBin" , "piArticle" , "piQpc" , "piOperator", "piFromBin"],
        "constantParam" : NSNull(),
        "replaceList" : ["piRplNum" : "poRplNum" , "piRplLine" : "poRplLine" , "piFromBin" : "custompoFromBin" , "piArticle" : "内码"]
    ],
<<<<<<< HEAD
    "chkBinRtnArt" : [
        "paramOthers" : ["piOperator" , "piFromBin"],
        "replaceList" : NSNull(),
        "suffix" : "330"
    ],
    "MoveInv_GetArtListByBin" : [
        "paramOthers" : ["piBin"],
        "replaceList" : ["piArticle" : "内码"],
        "suffix" : "325"
    ],
    "updMoveInvArticle" : [
        "paramOthers" : ["piFromBin","piToBin","piArticle","piQtyStr","piOperator"],
        "suffix" : "325"
=======
    "qryArticle" : [
        "paramOthers" : ["piArticle"],
        "replaceList" : ["piArticle" : "内码"]
>>>>>>> master
    ]

]




